Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods


ODObjectIterator

Superclasses
ODObject
Subclasses
none

An object of the ODObjectIterator class provides access to the entries of an object name space.

Description

You use an object iterator to apply an operation to all entries of an object name space. For example, you might use an object iterator to compile a complete list of all the part editors that support certain part types.

Your part creates an object iterator object by calling the object name space's CreateIterator method (page 451), which returns a reference to an object iterator object. The iterator performs an unordered traversal of the name space.

While you are using an object iterator, you should not modify or delete the name space. You must postpone adding entries to or removing entries from the name space until after you have deleted the iterator.

For information related to object name spaces, see the ODObjectNameSpace class description (page 450). For more information on accessing objects through iterators, see "Accessing Objects Through Iterators" on page 473 in OpenDoc Programmer's Guide.

Methods

This section presents summary descriptions of the ODObjectIterator methods grouped according to purpose, followed by detailed descriptions in alphabetical order.

Accessing

First
Begins the iteration and obtains the first entry in the name space.
Next
Obtains the next entry in the name space.
Iterator Testing

IsNotComplete
Returns a Boolean value that indicates whether the iteration is incomplete.

Methods
First
IsNotComplete
Next

Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help